package cn.electronic.sale.mapper;

import cn.electronic.sale.pojo.Admin;
import cn.electronic.sale.pojo.AdminExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 类描述：管理员持久层映射文件接口类
 * 
 * @author: nightingale
 * @date： 日期：2016-11-18 时间：上午10:04:44
 * @version 1.0
 */
public interface AdminMapper {
	Admin findAdminByNameAndPassword(Admin admin);
	
	int countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}